﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>凯旋科技管理系统</title>
    <link rel="stylesheet" href="<%=basePath %>web/themes/default/easyui.css">
    <link rel="stylesheet" href="<%=basePath %>web/themes/icon.css">
    <link rel="stylesheet" href="<%=basePath %>web/css/wu.css">
    <link rel="stylesheet" href="<%=basePath %>web/css/welcome.css">
    <script src="<%=basePath %>web/js/jquery.min.js"></script>
    <script src="<%=basePath %>web/js/jquery.easyui.min.js"></script>
    <script src="<%=basePath %>web/js/easyui-lang-zh_CN.js"></script>
    <style type="text/css">
    	#jxc_tabs .tabs-panels>.panel>.panel-body {
			overflow: hidden;
		}
    </style>
    	
    <script>
        function tabsClose(){
            var tab=$('#jxc_tabs').tabs('getSelected');//获取当前选中tabs
            var index = $('#jxc_tabs').tabs('getTabIndex',tab);//获取当前选中tabs的index
            $('#jxc_tabs').tabs('close',index);//关闭对应index的tabs
        }

        function addTabs(m_title,m_url){
        
        	var index_temp01=m_url.indexOf('/');
        	var index_temp02=m_url.indexOf('.');
        	var name=m_url.substring(index_temp01+1,index_temp02);
        
            var m_content="<iframe name='"+name+"' src='"+m_url+"' frameborder='0'style='width: 100%;height: 100%'></iframe>"
            if($("#jxc_tabs").tabs("exists",m_title)){
                $("#jxc_tabs").tabs("close",m_title);
                $("#jxc_tabs").tabs('add',{
                    title:m_title,
                    content:m_content,
                    closable:true
                });
            }else{
                $("#jxc_tabs").tabs('add',{
                    title:m_title,
                    content:m_content,
                    closable:true
                });
            }
        }
        
        
        function closeTabs(m_title){
         $("#jxc_tabs").tabs("close",m_title);
        }
        //-------时间插件
        var mydate=new Date();

        function nowtime(){
           var time=mydate
           var hour=time.getHours();
           var mini=time.getMinutes();
           var sec=time.getSeconds();
           var dd=time.getDate();
           var mm=time.getMonth()+1;
           var yy=time.getUTCFullYear();
           var weekday=time.getDay();

           
           var ww="";
           switch(weekday){
        	   case 1:ww="一";break;
        	   case 2:ww="二";break;
        	   case 3:ww="三";break;
        	   case 4:ww="四";break;
        	   case 5:ww="五";break;
        	   case 6:ww="六";break;
               default:ww="日";break;
           };
           var timearr ;
            timearr= new Array(hour,mini,sec);
             for (i = 0; i < 3; i++)
             {
        		 if(timearr[i]<10)
        		    timearr[i]="0"+timearr[i].toString();
             }
           var timestr=yy+"年"+mm+"月"+dd+"日"+timearr[0]+":"+timearr[1]+":"+timearr[2]+"   星期"+ww;
           document.getElementById('showtime').innerHTML=timestr;
           mydate.setSeconds(mydate.getSeconds(),1000);
        } 
        window.onload=nowtime;
        window.setInterval("nowtime()",1000);
        //时间插件结束
        
        
    </script>

</head>
<body>
<div id="cc" class="easyui-layout" data-options="fit:true">
    <div data-options="region:'north',border:false,split:true" class="wu-header" style="height: 70px;" >
        <div class="wu-header-left" style="margin-top:8px;">
            <img src="<%=basePath %>web/images/logo.png" width="80px">
            <img src="<%=basePath %>web/images/title.png" width="240px">
        </div>
        <div class="wu-header-right" style="margin-top:20px;">
            <p><strong class="easyui-tooltip" title="2条未读消息">${user.userName }</strong>，欢迎您！</p>
            <p><span id="showtime"></span>&ensp;&ensp;&ensp;|<a href="#">网站首页</a>|<a href="#">支持论坛</a>|<a href="#">帮助中心</a>|<a href="<%=basePath%>web/goods/cancealltion.jsp">安全退出</a></p>
        </div>
    </div>
    <div class="wu-footer" data-options="region:'south',split:true">
        &copy; 2013 FinalProject All Rights Reserved
    </div>
    <div data-options="region:'west',title:'导航菜单',split:true" style="width:160px;">
        <div class="easyui-accordion"  data-options="border:false,fit:true">
            <div title="采购管理" data-options="iconCls:'icon-purchase'" style="padding:5px;">
                <ul  class="easyui-tree wu-side-tree">
                    <li iconCls="icon-sheet">
                        <a href="javascript:void(0)" onclick="addTabs('产品列表','goods/model.jsp')">询价单据管理</a>
                    </li>
                    <li iconCls="icon-sheetin"><a href="javascript:void(0)"  onclick="addTabs('采购订单管理','goods/purchaseOrderBill.jsp')">采购订单管理</a></li>
                </ul>
            </div>
            <div title="销售管理" data-options="iconCls:'icon-sale'" style="padding:5px;">
                <ul  class="easyui-tree wu-side-tree">
                    <li iconCls="icon-stock-price"><a href="javascript:void(0)"  onclick="addTabs('报价单据管理','goods/quotationDocumentManagement.jsp')">报价单据管理</a></li>
                    <li iconCls="icon-sheet"><a href="javascript:void(0)"  onclick="addTabs('销售订单管理','goods/salesOrderManagement.jsp')">销售订单管理</a></li>
                </ul>
            </div>
            <div title="库存管理" data-options="iconCls:'icon-stock'" style="padding:5px;">
            	<ul class="easyui-tree wu-side-tree">
					<li iconCls="icon-sheetin"><a href="javascript:void(0)"  onclick="addTabs('入库单管理','goods/instroageBillList.jsp')">入库单据管理</a></li>
					<li iconCls="icon-sheet"><a href="javascript:void(0)"  onclick="addTabs('出库单据管理','goods/outstorageBill.jsp')">出库单据管理</a></li>
					<li iconCls="icon-sheet"><a href="javascript:void(0)"  onclick="addTabs('库存信息管理','goods/storageInfoList.jsp')">库存信息管理</a></li>
				</ul>
            </div>
            <div title="财务管理" data-options="iconCls:'icon-finance'" style="padding:5px;">
				<ul class="easyui-tree wu-side-tree">
					<li iconCls="icon-sheet"><a href="javascript:void(0)"  onclick="addTabs('采购付款管理','goods/procurePayManagement.html')">采购付款管理</a></li>
					<li iconCls="icon-sheetin"><a href="javascript:void(0)"  onclick="addTabs('销售收款管理','goods/collectBillManagement.html')">销售收款管理</a></li>
				</ul>
            </div>
            <div title="统计管理" data-options="iconCls:'icon-analysis'" style="padding:5px;">
            	<ul class="easyui-tree wu-side-tree">
					<li iconCls="icon-stock-price"><a href="javascript:void(0)"  onclick="addTabs('销售走势','goods/statistics.jsp')">销售走势管理</a></li>
					<li iconCls="icon-orderby"><a href="javascript:void(0)"  onclick="addTabs('销售排行','goods/sellorNumber_Price.jsp')">销售排行管理</a></li>
					<li iconCls="icon-stock-price"><a href="javascript:void(0)"  onclick="addTabs('采购走势','goods/purchasingTrend.jsp')">采购走势管理</a></li>
					<li iconCls="icon-orderby"><a href="javascript:void(0)"  onclick="addTabs('采购排行','goods/buyPriceAndNumber.jsp')">采购排行管理</a></li>
					<li iconCls="icon-sheet"><a href="javascript:void(0)"  onclick="addTabs('毛利润量管理','goods/statistics_grossProfit.jsp')">毛利润量管理</a></li>
				</ul>
            </div>
            <div title="基础管理" data-options="iconCls:'icon-base'" style="padding:5px;">
            	<ul class="easyui-tree wu-side-tree">
					<li iconCls="icon-connection"><a href="javascript:void(0)"  onclick="addTabs('往来单位管理','goods/purchaseCompany.jsp')">往来单位管理</a></li>
					<li iconCls="icon-diction"><a href="javascript:void(0)"  onclick="addTabs('字典内容管理','goods/dictManagement.jsp')">字典内容管理</a></li>
					<li iconCls="icon-sheet"><a href="javascript:void(0)"  onclick="addTabs('配件类别','goods/parttypedetail.jsp')">配件类别调价</a></li>
					<li iconCls="icon-sheet"><a href="javascript:void(0)"  onclick="addTabs('配件信息管理','goods/partDetailList.jsp')">配件信息管理</a></li>
				</ul>
            </div>
            <div title="系统管理" data-options="iconCls:'icon-system'" style="padding:5px;">
				<ul class="easyui-tree wu-side-tree">
					<li iconCls="icon-admin"><a href="javascript:void(0)"  onclick="addTabs('管理人员管理','goods/administrator.jsp')">管理人员管理</a></li>
					<li iconCls="icon-roles"><a href="javascript:void(0)"  onclick="addTabs('角色权限管理','goods/Acl.jsp')">角色权限管理</a></li>
				</ul>
            </div>


        </div>


    </div>
    <div data-options="region:'center'" style="padding:5px;background:#eee;">
        <div class="easyui-tabs" fit="true" id="jxc_tabs">
            <div title="首页"  data-options="fit:true,closable:false,href:'common/welcome.html'">

            </div>

        </div>
    </div>
</div>
</body>
</html>